/*    */ package net.sourceforge.appgen.generator;
/*    */ 
/*    */ import java.io.File;
/*    */ import net.sourceforge.appgen.model.AttachFile;
/*    */ import net.sourceforge.appgen.model.Entity;
/*    */ import net.sourceforge.appgen.model.GenerationInformation;
/*    */ import net.sourceforge.appgen.util.ConventionUtils;
/*    */ 
/*    */ public class AttachFileFileGenerator extends OnceFileGenerator
/*    */ {
/*    */   public static final String TEMPLATE = "attachFile.vm";
/*    */ 
/*    */   public AttachFileFileGenerator(GenerationInformation generationInformation)
/*    */   {
/* 34 */     super(generationInformation);
/*    */   }
/*    */ 
/*    */   public File getFile(Entity entity)
/*    */   {
/* 39 */     AttachFile attachFile = new AttachFile(this.packageName);
/*    */ 
/* 41 */     return new File(getDirectory(), attachFile.getClassName() + ".java");
/*    */   }
/*    */ 
/*    */   public File getDirectory()
/*    */   {
/* 46 */     AttachFile attachFile = new AttachFile(this.packageName);
/*    */ 
/* 48 */     return new File(this.outputDir.getPath() + File.separator + "src" + File.separator + ConventionUtils.getPath(attachFile.getFullPackageName()));
/*    */   }
/*    */ 
/*    */   public String getTemplate()
/*    */   {
/* 53 */     return "attachFile.vm";
/*    */   }
/*    */ }

/* Location:           C:\Users\lzl6066\Downloads\net.sourceforge.appgen_1.2.0\plugins\net.sourceforge.appgen_1.2.0.201002031718\
 * Qualified Name:     net.sourceforge.appgen.generator.AttachFileFileGenerator
 * JD-Core Version:    0.6.0
 */